{template header}

<style>
	.content a{
		color:black;
		font-weight:normal;
	}
	.content{
		color:#343434;font-size:14px;
	}

</style>
<div class="container">
<div class="row">
<div class="col-md-8">
    <div class="panel panel-default">
        <div class="panel-body">
			<div style="width: 100%">
				<ul style="width: 100%">
					{loop $arrWeibo $key $item}
					<li style="padding-top: 15px;padding-bottom: 15px;border-bottom: 1px dashed #999999;width: 100%">
						<ul style="display: flex;width: 100%">
							<li class="portrait" style="padding-right: 10px"><a href="{tsUrl('user','duty',array('id'=>$item['user']['userid']))}"><img align="absmiddle" style="width:30px" class="SmallPortrait img-rounded" title="{$item['user']['username']}" alt="{$item['user']['username']}" src="{$item['user']['face']}"></a></li>
							<li class="body" style="width: 90%">
								<div class="content"><a href="{tsUrl('user','duty',array('id'=>$item['user']['userid']))}">{$item['user']['username']}</a>{$item['content']}</div>

								<div style="display: flex;width: 100%"><div style="overflow: hidden;font-size:12px;color:#999999;width:90%">{php echo getTime(strtotime($item['addtime']),time())}</div>{if $GLOBALS['TS_USER']['isadmin']=='1' }<div style="float:right;width:10%"><a href="javascript:void('0');" onclick="del('{$item[weiboid]}')" ><i class="fa fa-trash" style="color: #999999" aria-hidden="true"></i></a></div>{/if}</div>

							</li>
						</ul>

					</li>
					{/loop}
				</ul>
			</div>

<div class="page">{$pageUrl}</div>
<div>

</div>

</div>
</div>


</div>


<div class="col-md-4">


    <!--广告位-->
    {php doAction('gobad','300')}



</div>


</div>
</div>
<script>

	//删除记录
	function del(weiboid){


		if (confirm('删除这条微博吗？')) {

			$.ajax({
				type: "POST",
				url: siteUrl+"index.php?app=weibo&ac=deleteweibo",
				data: "weiboid="+weiboid,
				beforeSend:function(){
				},
				success:function(result){
					if(result == '1'){
						window.location.reload();
					}
				}
			});

		}
	}
</script>
{template footer}